package com.zc.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zc.edu.entity.Course;
import com.zc.edu.entity.vo.CourseInfoVo;
import com.zc.edu.entity.vo.CoursePublishVo;
import com.zc.edu.entity.vo.front.CourseFrontVo;
import com.zc.utils.vo.CourseShowInfo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author cong
 * @since 2022-11-25
 */
public interface CourseService extends IService<Course> {

	String addCourseInfo(CourseInfoVo courseInfoVo);

	CourseInfoVo getCourseInfo(String courseId);

	boolean updateCourseInfo(CourseInfoVo courseInfoVo);

	CoursePublishVo getCoursePublishVo(String courseId);

	boolean deleteCourse(String courseId);

	Map<String, Object> getCourseList(Page<Course> pageCourse, CourseFrontVo courseFrontVo);

	CourseShowInfo getFrontCourseInfo(String id);
}
